package com.youi.entity;

import java.util.Date;

import com.youi.common.DelStatus;

import java.io.Serializable;


/**
 * 订单支付流水
 * @author XJY
 */
public class Orderpayment implements Serializable {

	private Long id;						//id
	private Date gmtCreated;			    //创建时间
	private Integer delStatus;			    //删除状态（0否 1是）
	private Date gmtModify;					//最后修改时间
	private Long orderId;					//订单id
	private Integer payType;				//支付方式(0余额支付 1银行卡支付 2微信支付 )
	private Double payableAmount;			//应付金额
	private String serialNumber;			//支付流水号
	private Double payAmount;				//已付金额

    public Orderpayment(){

    }

    public Orderpayment(Date gmtCreated,Integer delStatus,Date gmtModify,Long orderId) {
       this.gmtCreated=gmtCreated;
       this.delStatus=delStatus;
       this.gmtModify=gmtModify;
       this.orderId=orderId;
    }


    public Orderpayment(Long orderId,Integer payType,Double payableAmount,String serialNumber,Double payAmount) {
       this.gmtCreated=new Date();
       this.delStatus=DelStatus.NODEL;
       this.gmtModify=gmtCreated;
       this.orderId=orderId;
       this.payType=payType;
       this.payableAmount=payableAmount;
       this.serialNumber=serialNumber;
       this.payAmount=payAmount;
    }

	public Date getGmtCreated() {
		return gmtCreated;
	}

	public void setGmtCreated(Date gmtCreated) {
		this.gmtCreated = gmtCreated;
	}

	public void setDelStatus(Integer delStatus){
		this.delStatus=delStatus;
	}

	public Integer getDelStatus(){
		return delStatus;
	}

	public void setGmtModify(Date gmtModify){
		this.gmtModify=gmtModify;
	}

	public Date getGmtModify(){
		return gmtModify;
	}

	public void setOrderId(Long orderId){
		this.orderId=orderId;
	}

	public Long getOrderId(){
		return orderId;
	}

	public void setPayType(Integer payType){
		this.payType=payType;
	}

	public Integer getPayType(){
		return payType;
	}

	public void setPayableAmount(Double payableAmount){
		this.payableAmount=payableAmount;
	}

	public Double getPayableAmount(){
		return payableAmount;
	}

	public void setSerialNumber(String serialNumber){
		this.serialNumber=serialNumber;
	}

	public String getSerialNumber(){
		return serialNumber;
	}

	public void setPayAmount(Double payAmount){
		this.payAmount=payAmount;
	}

	public Double getPayAmount(){
		return payAmount;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

}
